package com.zy.config;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.orm.jpa.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/**
 * Created by ab804 on 2015/9/28 0024.
 */

@Configuration
@EnableAutoConfiguration
@EnableJpaRepositories(basePackages = {"com.zy.repo"})
@EntityScan(basePackages = "com.zy.domain")
@EnableTransactionManagement
@ImportResource("classpath:/provider.xml")
public class Config {
    public static void main(String[] args) {
        SpringApplication.run(Config.class, args);
    }
}
